package edu.whu.rose.clock.kps.algorithm.banks1;

import edu.whu.rose.clock.ssql.util.MyMath;

public class AnswerTree {

	private int root;
	private int[] leaves;
	private int[][] paths;
	private int[] allVertexes;
	
	public AnswerTree(int root, int[] leaves, int[][] paths, int[] allVertexes) {
		this.root = root;
		this.leaves = leaves;
		this.paths = paths;
		this.allVertexes = allVertexes;
	}
	
	public int compare(AnswerTree at) {
		return MyMath.compareIntArrays(allVertexes, at.getAllVertexes());
	}
	
	public int getRoot() {
		return root;
	}
	
	public int[] getAllVertexes() {
		return allVertexes;
	}
	
	public int getLeafNumber() {
		return paths.length;
	}
	
	public int[] getPath(int index) {
		return paths[index];
	}
	
	public int[] getLeaves() {
		return leaves;
	}
}
